#!/usr/bin/env python
# coding: utf-8


import sys, os

if sys.getdefaultencoding() != 'utf-8':
    reload(sys)
    sys.setdefaultencoding('utf-8')


from twisted.web.server import Site
from twisted.web.static import File
from twisted.application import service, internet


resource = File('/home/zyyang/www/ideplus/fuguang_landing')
factory = Site(resource)


application = service.Application("fu-guang.com")

fzService = internet.TCPServer(8082, factory, interface="localhost")
fzService.setServiceParent(application)